# $Id: PKGBUILD 55533 2011-09-14 07:44:04Z andrea $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.co>
# Contributor: dale <dale@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=unarj
pkgver=2.63a
pkgrel=3
pkgdesc="An utility to extract, test and  view the contents of archives created with the ARJ archiver"
arch=('i686' 'x86_64')
url="http://www.ibiblio.org/pub/Linux/utils/compress/"
license=('custom')
depends=('glibc')
source=("http://ibiblio.org/pub/Linux/utils/compress/$pkgname-$pkgver.tar.gz"
        'LICENSE')
md5sums=('a83d139c245f911f22cb1b611ec9768f'
         'c2467ee8c1cb61d843bc2c16cc5e2a2d')

build() {
  cd "${srcdir}"/$pkgname-$pkgver
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver
  install -D -m755 unarj $pkgdir/usr/bin/unarj
  install -D -m644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
